<%-- 
    Document   : userOrder
    Created on : Jul 5, 2012, 12:44:08 PM
    Author     : Owner
--%>

<%@include file="/jsp/top.jsp" %>

<html>
    <head>

        <title>My Orders</title>
    </head>
    <body>
        <div class="clear"></div>
        <table cellspacing="5px" width="100%" align="center">
            <tr>
                <td>
                    <table cellspacing="5px" width="100%" align="center">
                        <tr>
                            <td style="vertical-align: top;" width="200px" height="500px">
                                <div class="box-left box-menu">
                                    <div class="block block-account">
                                        <div class="block-title">
                                            <strong>
                                                <span>My Account</span>
                                            </strong>
                                        </div>
                                        <div class="block-content">
                                            <ul>
                                                <li><a class="show-dashboard" href="./userAccount.do?action=showAccountDashboard">Account Dashboard</a></li>
                                                <li><a class="show-dashboard" href="./userAccount.do?action=showEditUserPersonalInfo&changePassword='N'">Account Information</a></li>
                                                <li><a class="show-dashboard" href="./userAccount.do?action=showManageAddress">Manage Address</a></li>
                                                <li><a class="show-dashboard" href="./payment.do?action=showUserOrders">My Orders</a></li>
                                                <li><a class="show-dashboard" href="./userAccount.do?action=showAccountDashboard">My Wishlists</a></li>
                                                <li><a class="show-dashboard" href="./userAccount.do?action=showNewsletter">Newsletter Subscription</a></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </td>
                            <td style="vertical-align: top;" width="80%">
                                <div class="page-title"><h1>My Order</h1></div>
                                <table align="center" border="1" cellspacing="10px" width="100%">
                                    <tr>
                                        <td>
                                            <table align="center" width="100%" cellspacing="10px">
                                                <tr>
                                                    <td><strong>Order No.</strong>
                                                    </td>
                                                    <td><strong>Order Date</strong>
                                                    </td>
                                                    <td><strong>Total</strong>
                                                    </td>
                                                    <td><strong>Order Status</strong>
                                                    </td>                                                    
                                                </tr>
                                                <logic:notPresent name="userOrders" scope="request">
                                                    <tr>
                                                        <td colspan="4">
                                                            No Records found for Orders.
                                                        </td>
                                                    </tr>
                                                </logic:notPresent>
                                                <logic:present name="userOrders" scope="request">
                                                    <logic:empty name="userOrders" scope="request">
                                                        <tr>
                                                            <td colspan="4">
                                                                No Records found for Orders.
                                                            </td>
                                                        </tr>
                                                    </logic:empty>
                                                    <logic:notEmpty name="userOrders" scope="request">
                                                        <logic:iterate id="orders" name="userOrders" scope="request">
                                                            <tr>
                                                                <td><a href="./payment.do?action=getOrderDetail&orderId=<bean:write name="orders" property="orderId"/>"><bean:write name="orders" property="orderId"/></a></td>
                                                                <td><bean:write name="orders" property="orderDate"/></td>
                                                                <td>Rs. <bean:write name="orders" property="orderInvoiceAmt"/></td>
                                                                <td><bean:write name="orders" property="orderStatus"/></td>
                                                            </tr>
                                                        </logic:iterate>
                                                    </logic:notEmpty>
                                                </logic:present>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td><%@include file="/jsp/footer.jsp" %></td>
            </tr>
        </table>
    </body>
</html>
